package com.songshuai.webapi.jobapi.dao.edu;

import com.songshuai.webapi.jobapi.model.edu.TpoStudentInfo;
import com.songshuai.webapi.jobapi.model.edu.TpoStudentInfoWithBLOBs;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface TpoStudentInfoMapper {

    /**
     * 获取学生通过天王星id
     * @param twxId
     * @return
     */
    TpoStudentInfoWithBLOBs selectByTwxId(@Param(value = "twxId") Integer twxId);

    /**
     * 获取学生通过官网id
     * @param gwId
     * @return
     */
    TpoStudentInfoWithBLOBs selectByGwId(@Param(value = "gwId") Long gwId);

    /**
     * 通过线索guid获取线索
     * @param clueGuid 线索guid
     * @return
     */
    TpoStudentInfoWithBLOBs selectByClueGuid(@Param(value = "clueGuid") String clueGuid);

    /**
     * 通过线索guid获取线索
     * @param clueGuids 线索guid
     * @return
     */
    List<TpoStudentInfoWithBLOBs> selectByClueGuids(@Param(value = "clueGuids") List<String> clueGuids);

    /**
     *
     * @param stuGuids 学生guid
     * @return
     */
    List<TpoStudentInfoWithBLOBs> selectByStuGuids(@Param(value = "stuGuids") List<String> stuGuids);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table tpo_student_info
     *
     * @mbggenerated Wed Sep 12 14:15:04 CST 2018
     */
    int deleteByPrimaryKey(String guid);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table tpo_student_info
     *
     * @mbggenerated Wed Sep 12 14:15:04 CST 2018
     */
    int insert(TpoStudentInfoWithBLOBs record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table tpo_student_info
     *
     * @mbggenerated Wed Sep 12 14:15:04 CST 2018
     */
    int insertSelective(TpoStudentInfoWithBLOBs record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table tpo_student_info
     *
     * @mbggenerated Wed Sep 12 14:15:04 CST 2018
     */
    TpoStudentInfoWithBLOBs selectByPrimaryKey(String guid);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table tpo_student_info
     *
     * @mbggenerated Wed Sep 12 14:15:04 CST 2018
     */
    int updateByPrimaryKeySelective(TpoStudentInfoWithBLOBs record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table tpo_student_info
     *
     * @mbggenerated Wed Sep 12 14:15:04 CST 2018
     */
    int updateByPrimaryKeyWithBLOBs(TpoStudentInfoWithBLOBs record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table tpo_student_info
     *
     * @mbggenerated Wed Sep 12 14:15:04 CST 2018
     */
    int updateByPrimaryKey(TpoStudentInfo record);
}